<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('岗位调整记录列表')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="gray-bg">
    <div class="container-div">
        <div class="row">
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "record/post";

        $(function() {
            var options = {
                url: prefix + "/list",
                modalName: "岗位调整记录",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'id',
                    title: 'id',
                    visible: false
                },
                {
                    field: 'userNo',
                    title: '员工工号'
                },
                {
                    field: 'userName',
                    title: '员工姓名'
                },
                {
                    field: 'oldName',
                    title: '原岗位'
                },
                {
                    field: 'deptName',
                    title: '调整岗位'
                },
                {
                    field: 'changeTime',
                    title: '调整时间',
                    sortable: true
                },
                {
                    field: 'createBy',
                    title: '调整人员',
                    sortable: true
                },
                {
                    field: 'createTime',
                    title: '创建时间',
                    sortable: true
                },
                {
                    field: 'remark',
                    title: '备注'
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>